<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="header" >
    <div  class="left-btn pointer" onClick="window.location='{$appshop}'"><span class="iconfont icon-back"></span></div>
    <div class="title">订单管理</div>
    <div class="right-btn" id="showSearch"><span class="iconfont icon-search"></span></div>
     
  </div>
<div class="row">
	<div class="tabs-border i5">
    	<a href="{$appshop}?m=shop_order&status=0" class="item {if get('status') eq 0}active{/if}">未处理</a>
        <a href="{$appshop}?m=shop_order&status=1" class="item {if get('status') eq 1}active{/if}">待发货</a>
        <a href="{$appshop}?m=shop_order&status=2" class="item {if get('status') eq 2}active{/if}">已确认</a>
        <a href="{$appshop}?m=shop_order&status=3" class="item {if get('status') eq 3}active{/if}">已完成</a>
        <a href="{$appshop}?m=shop_order&status=10" class="item {if get('status') eq 10}active{/if}">已取消</a>
    </div>
</div>
<div class="row">
 
<form method="get" action="{$appshop}">
<input type="hidden" name="m" value="shop_order" />
<input type="hidden" name="a" value="default" />
<div class="pd-5" id="searchBox" style="display:none">
<div class="input-row"><label >订单号</label><input type="text" name="orderno" value="{$smarty.get.orderno}" /></div>
<div class="input-row"><label>用户</label><input type="text" name="nickname" value="{$smarty.get.nickname}" /></div>
<div class="input-row"><select name="status" class="txt">
<option value="-1">请选择状态</option>
{foreach item=c key=k from=$order_status_list}
{if $k lt 99}<option value="{$k}" {if $smarty.get.status eq $k} selected="selected" {/if}>{$c}</option>{/if}
{/foreach}
</select>
</div>
<div class="form-btns">
<button type="submit"   class="btn btn-warning btn-row" />搜索</button>
</div>
</div>
</form>

<div class="market_tabs">
  <div class="first_item">共{$rscount}笔</div>
   
</div>
<div class="clearfix"></div>
 
<div class="uclist" > {foreach item=c from=$data}
  <div class="item" onClick="window.location='{$appshop}?m=shop_order&a=show&order_id={$c.order_id}'">
   <div class="hd"> {$c[address].p_c_t}-{$c[address].sushe}寝室 <span class="right">订单号:{$c.orderno}</span> </div>
   <div class="row pos">
    <div class="g-s1">
     
      <div class="h2">共{$c.num}件 合计{$c.money}元 <span class="right">{$c[address].truename}</span></div>
      <div class="h2">{$c.dateline|date:Y-m-d H:i:s}  
      	<span class="right">&nbsp;{if $c.ispay eq 2}
        			{if $c.paytype eq 'alipay'}支付宝{elseif $c.paytype eq 'wxpay'}微信支付{else}在线支付{/if}
        		{else}{if $c.unpay}货到付款{else}未支付{/if}{/if}</span>
      </div>
    </div>
    <div class="g-m1"> &gt; </div>
    <div class="clearfix"></div>
    </div>
  </div>
  {/foreach}
  {$pagelist} </div>
{$pagelist}
</div>
 <script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
<script>
$(function(){
	
	$("#showSearch").on(CLICK,function(){
		$("#searchBox").toggle();
	});
	
})
</script>
{include file="footer.html"}